﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Hangjing.Model;
using Hangjing.SQLServerDAL;
using Hangjing.Common;
using System.Text.RegularExpressions;

namespace Html5
{
    public partial class shop_notice : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = UserHelp.GetUser_Togo().Unid;
            DeliverGroupInfo model = new DeliverGroup().GetShopNotice(id);

            if (model == null)
            {
                model = new DeliverGroupInfo();
                model.hovepic = "暂无通知";
            }

            List<DeliverGroupInfo> list = new List<DeliverGroupInfo>();
            list.Add(model);

            WebUtility.BindRepeater(rptdata, list);

            //已读取

            noticereadlogInfo log = new noticereadlogInfo();
            log.mtype = 2;
            log.userid = id;
            log.addtime = DateTime.Now;
            log.noticeid = 0;
            log.reveint1 = 0;
            log.reveint2 = 0;
            log.revevar1 = "";
            log.revevar2 = "";

            new noticereadlog().Add(log);

        }

    }
}
